//app.js
App({
  onLaunch: function () {
      wx.getSystemInfo({
          success: e => {
              this.globalData.StatusBar = e.statusBarHeight;
              let custom = wx.getMenuButtonBoundingClientRect();
              this.globalData.Custom = custom;
              let CustomBar = custom.bottom + custom.top - e.statusBarHeight;
              this.globalData.CustomBar = CustomBar;
              //适配全面屏底部距离
              if (CustomBar > 75) {
                  this.globalData.tabbar_bottom = "y"
              }
          }
      })
  },
  globalData: {
      userInfo: null,
      requestUrl:'http://localhost:8081',
      statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'], //自适应设备屏幕高度
      userId:0,
      userName:'',
      userHead:'',
  }
});

